 $(function() {
 	var o = $("#menu li.t");
        $('tr:odd').addClass('odd');
   $(o, this).hover(function () {
		if($(this).attr("id")=="active"){return false;}
		o.removeAttr("id");
		$(this).attr("id", "active");
	},function () {
		o.removeAttr("id");
	});
        
   $(".loader", this).click(function (){
       var o = $(this);
       var pos = o.position();
       o.css('opacity','.4');
       $('#loader_match').css({
           'top' : pos.top + 5,
           'left' : pos.left + 180,
           'width': 150
       }).show();
   })     
});

function redirect(path, loaderID, loadingText) {
    var o = $('#'+loaderID);
        o.css('display', 'block');
        o.html(loadingText , location.href=path );
        
}